using System.Collections;
using Spring.Data.Common;
using Spring.Data.Objects;
using Domain.pe.com.workspace;
using System.Collections.Generic;


namespace DAO.pe.com.workspace.oficina.impl.procedure
{
    public class ObtenerDetalleFacturaProcedure : StoredProcedure
    {
        
        public ObtenerDetalleFacturaProcedure(IDbProvider dbProvider, string procedureName)
            : base(dbProvider, procedureName)
        {    
            DeriveParameters(); 
            AddRowMapper("orderDetailRowMapper", new FacturaDetalleRowMapper());
            Compile();
        }
        
        public virtual IList GetOrderDetails(int orderid)
        {
            
            IDictionary outParams = Query(orderid);
            IList lista = outParams["orderDetailRowMapper"] as IList;
            return lista;
        }
    }
}
